context Programming examples

HUB | Up | Download | Pheedbak | Tree | Topic | A-Z | Search | Hot | New



the program included herein hails from the toolbox/documents/irix/userContext.html July 1995 Pipeline article, "Getting and Setting User Context Within a Process".

The following program provides an example of using the getcontext(2), setcontext(2) and makecontext(3C) functions introduced in IRIX 5.x. These functions are useful for implementing user level context switching between multiple threads of control within a single IRIX process.

Each thread's context is defined in ucontext(5). A thread's context is maintained and created by the operating system primarily because it includes the signal mask (which is maintained by the operating system).



Select any combo of files you'd like to send yourself a compressed tar image of. Executables/scripts are indicated with a trailing `*' character. (Depending upon the browser, it may be necessary to hold down the Ctrl key to select/deselect disjoint items.) a compressed tar image of the above-selected items.
OR, ...
a compressed tar image of the entire context directory.

Copyright © 1995, Silicon Graphics, Inc.